public class Circle extends Shape{
    // 半径
    private int r;
  
    // 构造器
    public Circle() {
    }

    public Circle(String name,int r) {
        super(name);
        this.r=r;
    }
  

    @Override
    public double getArea() {
    
      return Math.PI *r*r ;
    }
  }